<%-- 
    Document   : mantRubro
    Created on : 11/06/2009, 02:50:56 PM
    Author     : WILLIAM GASTAÑUEDI
--%>

<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">
<%@taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
<%@taglib prefix="h" uri="http://java.sun.com/jsf/html"%>
<%@taglib prefix="r" uri="http://richfaces.ajax4jsf.org/rich" %>
<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
<script language="javascript" src="../js/funciones.js"></script>
<link href="/colegiatura/Estilos/estilosEsymons.css" rel="stylesheet" type="text/css" />

<f:view>
<h:form id="frmManRubro">
<table width="100%" border="0" cellpadding="1" cellspacing="1">
  <tr>
      <td colspan="4" align="left" class="texto3">
        <h:outputLabel value="Mantenimiento de Rubro" styleClass="texto3"/></td>
  </tr>
  <tr><td height="20">
     <a4j:outputPanel ajaxRendered="true">
    <h:messages id="lblMessages" styleClass="messages" infoClass="infoClass" errorClass="errorClass"
                warnClass="warnClass" showDetail="true" errorStyle="color:red;"
                warnStyle="color:green;" infoStyle="color:black;" fatalStyle="color:black"/>
    </a4j:outputPanel>
      </td>
  </tr>
   <tr>
       <td colspan="4" align="left" height="40" valign="middle">
        <h:commandButton action="#{rubroController.nuevo}" value="Nuevo Rubro" styleClass="enlace9" /></td>
    </tr>
 <tr>
   <td colspan="4" align="center">
       <r:dataTable value="#{rubroController.listaRubro}" var="rubro" rows="10" reRender="dt" 
       id="TableRubro" border="0" headerClass="texto18" rowClasses="TableImpar,TablePar">
           <r:column width="500" filterBy="#{rubro.rubDescripcion}" filterEvent="onkeyup">
               <f:facet name="header">
                   <h:outputLabel value="Descripción" />
               </f:facet>
               <h:outputLabel value="#{rubro.rubDescripcion}" styleClass="texto20" />
           </r:column>
           <r:column width="80">
               <f:facet name="header"></f:facet>
               <h:commandButton action="ir_a_editar" image="/imagenColegiatura/editar.png" title="Editar">
                   <f:setPropertyActionListener target="#{rubroController.rubro}" value="#{rubro}"/>
               </h:commandButton>&nbsp;
               <h:commandButton action="#{rubroController.remover}" image="/imagenColegiatura/eliminar.png" title="Eliminar">
                   <f:setPropertyActionListener target="#{rubroController.rubro}" value="#{rubro}"/>
               </h:commandButton>
           </r:column>
           <f:facet name="footer">
              <r:datascroller id="dt" renderIfSinglePage="false"></r:datascroller>
           </f:facet>
       </r:dataTable>  
   </td>
  </tr>
</table>
</h:form>
</f:view>